<?php

namespace app\api\model;

use think\Model;
use traits\model\SoftDelete;

class CouponOrder extends Model
{
    use SoftDelete;
    protected $deleteTime = 'deletetime';

    public static function getByOrderNo($order_no)
    {
        return self::where('order_no', $order_no)->find();
    }
}
